﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:n="http://nRoute/schemas/2010/xaml" 
    x:Class="SimpleShell.Shell"
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="800">
    
	<i:Interaction.Behaviors>
		<n:BridgeViewModelBehavior/>
	</i:Interaction.Behaviors>
    
    <Grid x:Name="LayoutRoot" Background="#FFF9F9F9">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.5*"/>
    		<ColumnDefinition Width="0.5*"/>
    	</Grid.ColumnDefinitions>
        
    	<n:StatefulBrowsingContainer x:Name="leftContainer" Url="Content/Pages/About/" Background="#423A96C6" VerticalContentAlignment="Top" Margin="0,50,0,0">
    		<i:Interaction.Behaviors>
    			<n:NavigationHandlerBehavior HandlerName="First" IsDefaultHandler="True"/>
    		</i:Interaction.Behaviors>
        </n:StatefulBrowsingContainer>

        <n:StatefulBrowsingContainer  x:Name="rightContainer" Url="Content/Pages/About/" Grid.Column="1" Background="#38B22929" VerticalContentAlignment="Top" Margin="0,50,0,0">
    		<i:Interaction.Behaviors>
    			<n:NavigationHandlerBehavior HandlerName="Second"/>
    		</i:Interaction.Behaviors>
        </n:StatefulBrowsingContainer>
        
        <Button Content="Back" HorizontalAlignment="Left" Height="38" Margin="8,8,0,0" VerticalAlignment="Top" Width="92">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="Click">
        			<n:DirectionalNavigateAction Handler="{Binding ElementName=leftContainer}"/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </Button>
        <Button Content="Forward" Height="38" Margin="108,8,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="92">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="Click">
        			<n:DirectionalNavigateAction Handler="{Binding ElementName=leftContainer}" Direction="Forward"/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </Button>
        <Button Content="Back" HorizontalAlignment="Left" Height="38" Margin="8,8,0,0" VerticalAlignment="Top" Width="92" Grid.Column="1">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="Click">
        			<n:DirectionalNavigateAction Handler="{Binding ElementName=rightContainer}"/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </Button>
        <Button Content="Forward" Height="38" Margin="108,8,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="92" Grid.Column="1">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="Click">
        			<n:DirectionalNavigateAction Handler="{Binding ElementName=rightContainer}" Direction="Forward"/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </Button>
        
        <!--<n:StatusViewer Grid.ColumnSpan="2" ToolTipService.ToolTip="Click to Dismiss">
            <n:StatusViewer.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFEDDA04" Offset="0.935"/>
                    <GradientStop Color="#FFFFF8B3" Offset="0.113"/>
                    <GradientStop Color="#FFF3E86C" Offset="0.583"/>
                    <GradientStop Color="#FF4D4707" Offset="1"/>
                    <GradientStop Color="#FFFAF298" Offset="0.417"/>
                </LinearGradientBrush>
            </n:StatusViewer.Background>
            <i:Interaction.Behaviors>
                <n:StatusViewServiceBehavior IsDefault="True"/>
            </i:Interaction.Behaviors>
        </n:StatusViewer>-->

        <!-- <n:WorkIndicator x:Name="workIndicator" ShowTitle="False" Title="Loading, Please Hold.." IsWorking="False" Grid.ColumnSpan="2">
           <i:Interaction.Behaviors>
                <n:IndicatorViewServiceBehavior ViewServiceName="DefaultIndicator" IsDefault="True"/>
            </i:Interaction.Behaviors>
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeftButtonUp">
                    <n:SetPropertyAction PropertyName="IsWorking" Value="False"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </n:WorkIndicator>-->

    </Grid>
</UserControl>
